Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-gapcursor

Package Overview
Dependencies
Maintainers
5
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-gapcursor

gapcursor extension for tiptap

  • 2.10.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created

What is @tiptap/extension-gapcursor?

@tiptap/extension-gapcursor is an extension for the Tiptap editor that provides a visual cursor for empty spaces (gaps) in the document. This is particularly useful for navigating and editing documents with complex structures, such as nested nodes or inline nodes, where traditional cursors might not be sufficient.

What are @tiptap/extension-gapcursor's main functionalities?

Gap Cursor Initialization

This code demonstrates how to initialize the Tiptap editor with the GapCursor extension. By including the GapCursor extension, the editor will be able to display and handle gap cursors in the document.

import { GapCursor } from '@tiptap/extension-gapcursor';
import { Editor } from '@tiptap/core';

const editor = new Editor({
  extensions: [
    GapCursor,
  ],
});

Custom Styling for Gap Cursor

This code shows how to configure the GapCursor extension with custom styling. By providing a className, you can apply custom CSS to style the gap cursor as needed.

import { GapCursor } from '@tiptap/extension-gapcursor';
import { Editor } from '@tiptap/core';
import './styles.css';

const editor = new Editor({
  extensions: [
    GapCursor.configure({
      className: 'custom-gapcursor',
    }),
  ],
});

Other packages similar to @tiptap/extension-gapcursor

Keywords

FAQs

Package last updated on 26 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc